﻿<%@ Page Title="【个人中心】- 积分明细" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Personal.master"
    AutoEventWireup="true" CodeFile="per_integral_detail.aspx.cs" Inherits="per_integral_detail" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--Right-->
    <div class="per_right_con">
        <div class="per_pre_record_t">
            <b>积分明细</b>
            <script type="text/javascript" src="../js/jquery-1.7.min.js"></script>
            <dl class="select03">
                <asp:DropDownList ID="timesl" runat="server" AutoPostBack="true"
                    OnSelectedIndexChanged="timesl_SelectedIndexChanged">
                    <asp:ListItem Value="5">全部</asp:ListItem>
                    <asp:ListItem Value="0">今天</asp:ListItem>
                    <asp:ListItem Value="1">近一周</asp:ListItem>
                    <asp:ListItem Value="2">近一个月</asp:ListItem>
                    <asp:ListItem Value="3">近三个月</asp:ListItem>
                    <asp:ListItem Value="4">近六个月</asp:ListItem>
                </asp:DropDownList>
            </dl>
            <dl class="select03">
                <asp:DropDownList ID="typesl" runat="server" AutoPostBack="true"
                    OnSelectedIndexChanged="typesl_SelectedIndexChanged">
                    <asp:ListItem Value="2">积分消耗</asp:ListItem>
                    <asp:ListItem Value="1">积分获得</asp:ListItem>
                </asp:DropDownList>
            </dl>
            <span>
                <div id="gift_popup" class="b"><a class="gift_popup" href="intergral_gift_address.aspx">设置礼品邮寄地址</a></div>
            </span>
        </div>
        <ul class="per_integral_title_ul">
            <li style="width: 15%">时间</li>
            <li style="width: 15%">类型</li>
            <li style="width: 15%">收入</li>
            <li style="width: 15%">支出</li>
            <li style="width: 40%">说明</li>
        </ul>
        <%if (userOrder != null)
            {
                for (int i = 0; i < userOrder.Count; i++)
                { %>
        <ul class="per_integral_con_ul">
            <li style="width: 15%"><%=userOrder[i].Addtime.ToString("yyyy-MM-dd")%></li>
            <%if (userOrder[i].Type == 2)
                { %>
            <li style="width: 15%">消耗积分</li>
            <%}
                else
                {%>
            <li style="width: 15%">获得积分</li>
            <%} %>
            <li style="width: 15%"><b><%if (userOrder[i].Type == 1)
                                          { %> +<%=userOrder[i].UseIntegral%>
                <%} %> &nbsp;</b></li>
            <li style="width: 15%"><em>
                <%if (userOrder[i].Type == 2)
                    { %> -<%=userOrder[i].UseIntegral%>
                <%} %> &nbsp;
            </em></li>
            <li style="width: 40%"><%=userOrder[i].Content%></li>
        </ul>
        <%}
            }
            else
            { %>
        <ul class="per_integral_con_ul">

            <div style="text-align: center">暂无记录</div>
        </ul>
        <%}%>
        <div class="sabrosus">
            <webdiyer:AspNetPager SubmitButtonClass="buttons" ID="AspNetPager1"
                runat="server" AlwaysShow="True" FirstPageText="首页"
                NextPageText="下一页" PrevPageText="前一页" LastPageText="尾页" PageSize="8"
                OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
        <div class="per_r_infor per_g_margin">
            <h3>积分明细-注意事项：</h3>
            <p>积分可以通过购彩消费获得，每消费1元累计1个积分；</p>
            <p>积分累计周期为2个自然年。即每年年底将会对前一年产生的逾期未对或兑后剩余积分做清零处理，以此类推。</p>
            <p>如：2014年年底将会对2013之前（含2013年）年产生的逾期未对或兑后剩余积分做清零处理。</p>
        </div>
    </div>
    <!--Right-->
    <div class="per_bg_bottom"></div>
    </div>
    <!--Content-->
</asp:Content>
